package com.huidu.bitrade.constant;

import com.fasterxml.jackson.annotation.JsonValue;
import com.huidu.bitrade.core.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

@AllArgsConstructor
@Getter
public enum ActivityType implements BaseEnum {
    UNKNOWN("未知"),
    IPO_RUSH("首发抢购"),
    IPO_SHARE("首发分摊"),
    PARTITION("持仓瓜分"),
    FREE_SUBSCRIBE("自由认购"),
    MINE("云矿机"),
    LOCK("锁仓释放"),
    HDZ_PLEDGE("HDZ质押");

    @Setter
    private String typeName;

    @Override
    @JsonValue
    public int getOrdinal(){
        return this.ordinal();
    }
}
